/*
 * MPITypes.cpp
 *
 *  Created on: 6.1.2013
 *      Author: Lukas Gemela
 */

#include "MPITypes.h"

MPITypes::MPITypes() {
	commitIndividuumDataType();
}

void MPITypes::commitIndividuumDataType() {
	MPI_Datatype oldtypes[1];
	int blockcounts[1];
	MPI_Aint offsets[1];
	offsets[0] = 0;
	oldtypes[0] = MPI_DOUBLE;
	blockcounts[0] = 5;
	MPI_Type_struct(1, blockcounts, offsets, oldtypes, &individuum);
	MPI_Type_commit (&individuum);
}

MPITypes::~MPITypes() {
}

